module.exports = {
	getTypeById: getTypeById
};
var uuid = require('../common/utils/id-helper');

var db = require('../common/database/db');

function getTypeById(id, cb) {
// 	cb (null, {name: '小胖', mobile: '10086'});
	db.queryWithParam("select * from membertype where id=? ", [id], function (err, type) {
		if (err) return cb(err);
		cb(null, type[0]);
	});
}


